﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Skynet.WebSite.Support.Messages
{
    public partial class ErrorMessageView : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            var qs = Request.QueryString["previuspath"];
            hpPreviusPage.NavigateUrl = HttpUtility.HtmlEncode(qs);
            var target = Session[Skynet.WebFoundation.Constants.SessionNames.SupportLastException] as Exception;
            if (target != null)
            {
                this.lblError.Text = target.Message;
            }            
        }
    }
}